<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        .box{
            width: 600px;
            height: 600px;
            border: 1px solid red;
            margin: 0 auto;
        }
        .item{
            width: 100px;
            height: 40px;
            background-color: pink;
            text-align: center;
            line-height: 40px;
            color: #fff;
            margin: 0px 3px;

            display: inline-block;
        }
        .item:hover{
            background-color: gold;
            color: #000;
            /* 设置鼠标变成手形 */
            cursor: pointer;
        }
    </style>
</head>
<body>
    
    <div class="box">
        <div class="item">新闻</div><div class="item">体育</div><div class="item">汽车</div><div class="item">娱乐</div>
    </div>

</body>
</html>